<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第二遍-大事件登录页面</title>
    <!-- 引入layuicss -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 引入自己的css -->
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <!-- 1.logo图片 -->
    <div class=" layui-main header">
        <img src="assets/images/logo.png" id="logo" alt="">
    </div>

    <!-- 2.登录注册区域 -->
    <div class="login-and-register">
        <!-- a)标题 -->
        <div class="login-title">
            <img src="/assets/images/login_title.png" alt="">
        </div>

        <!-- b)登录区域 -->
        <div id="userLogin">
            <form class="layui-form" id="loginSubmit" action="">
                <!-- b)1.账户 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-username"></i>
                        <input type="text" name="username" required lay-verify="required" placeholder="请输入账户"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- b)2.密码 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-password"></i>
                        <input type="text" name="password" required lay-verify="required" placeholder="请输入密码"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- b)3.登录按钮 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid layui-btn-warm" lay-submit
                            lay-filter="formDemo">登录</button>
                    </div>
                </div>
                <!-- d)4.去注册区域链接 -->
                <div class="layui-form-item">
                    <a href="javascript:;">去注册账户</a>
                </div>
            </form>

        </div>

        <!-- c)注册区域  id一般用驼峰命名法 类名一般用-连接 -->
        <div id="userRegister" style="display: none;">
            <form class="layui-form" id="registerSubmit" action="">
                <!-- b)1.账户 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-username"></i>
                        <input type="text" name="username" required lay-verify="required|username"
                            placeholder="请输入要注册的账户" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- b)2.密码 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-password"></i>
                        <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入要注册的密码"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- b)2.重复确认密码 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-password"></i>
                        <input type="text" name="repassword" required lay-verify="required|repwd" placeholder="请重新输入密码"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- b)3.注册按钮 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid layui-btn-warm" lay-submit
                            lay-filter="formDemo">注册</button>
                    </div>
                </div>
                <!-- d)4.去注册区域链接 -->
                <div class="layui-form-item">
                    <a href="javascript:;">去登录</a>
                </div>
            </form>
        </div>
    </div>


    <!-- 按先后顺序引入js -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/lib/axios.js"></script>
    <script src="/assets/js/common.js"></script>
    <script src="/assets/js/login.js"></script>
</body>

</html>